{if $data['page'] > 1}
    <a class="prev" href="{$url}?page={$data['page'] - 1}&{$data['query']}">&lt;&lt;</a>
{/if}

{if $data['last_page'] > 1}
    {foreach $data['pageRange'] as $page}
        {if $data['page'] == $page}
            <span class="current">{$page}</span>
        {elseif $page == '...' /}
            <span>{$page}</span>
        {else /}
            <a class="num" href="{$url}?page={$page}&{$data['query']}">{$page}</a>
        {/if}
    {/foreach}
{/if}

{if $data['page'] < $data['last_page']}
<a class="next" href="{$url}?page={$data['page'] + 1}&name={$param['name']}&{$data['query']}">&gt;&gt;</a>
{/if}
{if $data['last_page'] > 1}
    <label style="color: #999;">到第</label>
        <input id="goPage" style="padding: 5px;width: 20px;height: 26px;border: 1px solid #E2E2E2;"/>
    <label style="color: #999;">页</label>
    <a id="go" style="color: black;cursor: pointer;">确定</a>
{/if}